<%@ Page Language="C#" MasterPageFile="~/SurveyHost.Master" AutoEventWireup="true"
    Codebehind="SurveyComplete.aspx.cs" Inherits="SurveyHost.Web.Participant.SurveyComplete"
    Title="Survey Complete" %>

<%@ Register Src="~/Controls/Paragraph.ascx" TagName="Paragraph"
    TagPrefix="cms" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
    runat="server">
    <div class="post">
        <h1 class="title">
            <cms:Paragraph ID="title" runat="server" ContentName="SurveyComplete_title" />
        </h1>
        <p class="byline">
            <cms:Paragraph ID="byline" runat="server" ContentName="SurveyComplete_byline" />
        </p>
        <div class="entry">
            <cms:Paragraph ID="entry" runat="server" ContentName="SurveyComplete_entry" />
            <h4>
                Survey confirmation details:</h4>
            <ul>
            <li>Confirmation number:  <%= Checksum %></li>
            </ul>   
            <cms:Paragraph ID="email" runat="server" ContentName="SurveyComplete_email" />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1"
                ControlToValidate="emailAddy" runat="server" ErrorMessage="Please enter a valid email address."
                ValidationExpression="[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?"></asp:RegularExpressionValidator>
            <asp:TextBox ID="emailAddy" runat="server" MaxLength="128" Width="80%"></asp:TextBox>
            <div style="float: right; width: 20%; text-align: right;">
                <asp:Button ID="Send" runat="server" Text="Send" Width="70px"
                    OnClick="Send_Click" /></div>
            <div style="float: left; width: 80%; margin-top: 4px;">
                <asp:Label ID="Status" runat="server" Text="" Visible="false"></asp:Label></div>
        </div>
    </div>
</asp:Content>
